<!--<div class="form">-->
<?php
/** @var SubcategoriaController $this */
/** @var Subcategoria $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'id' => 'subcategoria-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
        ));
?>
<div class="row-fluid sortable span9">
    <div class="box">
        <div class="box-header well" data-original-title>
            <h2>
<!--                <i class="icon-list"></i> -->
                <?php echo Subcategoria::label() ?>  
            </h2>
            <div class="box-icon">
                <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i> </a> 
            </div>
        </div>

        <div class="box-content">
            <p class="note">
                <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
                <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>

            <?php echo $form->errorSummary($model) ?>
            <div class="row-fluid">
                <div class="spna5">
                    <?php echo $form->dropDownListRow($model, 'categoria_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Categoria::model()->findAll(), 'id', Categoria::representingColumn())) ?>
                </div>
                <div class="spna5">
                    <?php echo $form->textFieldRow($model, 'nombre', array('maxlength' => 45)) ?>
                </div>
            </div>
            <div class="row-fluid">
                <div class="spna5">                      
                    <?php echo $form->textFieldRow($model, 'descripcion', array('maxlength' => 45)) ?>
                </div>
                <div class="spna5"> 
                </div>
            </div>
            <div class="form-actions">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
                ));
                ?>
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    //'buttonType'=>'submit',
                    'label' => Yii::t('AweCrud.app', 'Cancel'),
                    'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
                ));
                ?>
            </div>

            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>
<!--</div>-->